package apibasej.db.server.exec;

import java.util.Date;

public class TransactionServerInfo {

	private StackTraceElement[] closedBy;//para encontrar bugs ...
	private StackTraceElement[] createdBy;//para encontrar bugs ...

	private Date timeCreate = null;
	private Date timeBegin = null;
	private Date timeCommit = null;
	private Date timeClose = null;
	
	//estes tempos podem ser usado somente para comparação entres eles ... não da para converter em data
	private Long nanoTimeCreate = null;
	private Long nanoTimeBegin = null;
	private Long nanoTimeCommit = null;
	private Long nanoTimeRollback = null;
	private Long nanoTimeClose = null;
	
	
	public StackTraceElement[] getClosedBy() {
		return closedBy;
	}
	public StackTraceElement[] getCreatedBy() {
		return createdBy;
	}
	public Long getNanoTimeCreate() {
		return nanoTimeCreate;
	}
	public Long getNanoTimeBegin() {
		return nanoTimeBegin;
	}
	public Long getNanoTimeCommit() {
		return nanoTimeCommit;
	}
	public Long getNanoTimeRollback() {
		return nanoTimeRollback;
	}
	public Long getNanoTimeClose() {
		return nanoTimeClose;
	}
	public void setClosedBy(StackTraceElement[] closedBy) {
		this.closedBy = closedBy;
	}
	public void setCreatedBy(StackTraceElement[] createdBy) {
		this.createdBy = createdBy;
	}
	public void setNanoTimeCreate(Long nanoTimeCreate) {
		this.nanoTimeCreate = nanoTimeCreate;
	}
	public void setNanoTimeBegin(Long nanoTimeBegin) {
		this.nanoTimeBegin = nanoTimeBegin;
	}
	public void setNanoTimeCommit(Long nanoTimeCommit) {
		this.nanoTimeCommit = nanoTimeCommit;
	}
	public void setNanoTimeRollback(Long nanoTimeRollback) {
		this.nanoTimeRollback = nanoTimeRollback;
	}
	public void setNanoTimeClose(Long nanoTimeClose) {
		this.nanoTimeClose = nanoTimeClose;
	}
	public Date getTimeCreate() {
		return timeCreate;
	}
	public void setTimeCreate(Date timeCreate) {
		this.timeCreate = timeCreate;
	}
	public Date getTimeBegin() {
		return timeBegin;
	}
	public void setTimeBegin(Date timeBegin) {
		this.timeBegin = timeBegin;
	}
	public Date getTimeClose() {
		return timeClose;
	}
	public void setTimeClose(Date timeClose) {
		this.timeClose = timeClose;
	}
	public Date getTimeCommit() {
		return timeCommit;
	}
	public void setTimeCommit(Date timeCommit) {
		this.timeCommit = timeCommit;
	}
	
}
